package com.zjcode.cdcer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

/**
 * @ClassName:ZjcodeOAServiceApplication
 * @功能：
 * @author：wlei
 * @日期：2022/4/8-2:52 PM
 **/
@SpringBootApplication(scanBasePackages = "com.zjcode.cdcer")
@EnableDiscoveryClient
@EnableOAuth2Client
@EnableFeignClients(basePackages = {"com.zjcode.cdcer"})
@EnableCircuitBreaker
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Slf4j
public class ServiceApplication implements CommandLineRunner {

    public static void main(String[] args) {
        log.info("启动慢病癌症管理服务开始");
        SpringApplication.run(ServiceApplication.class, args);
        log.info("启动慢病癌症管理服务完成");
    }

    @Override
    public void run(String... args) throws Exception {

    }
}
